import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

showMyBottomSheet(Widget child,
    {CrossAxisAlignment crossAxisAlignment: CrossAxisAlignment.center,
    double radius: 8,
    Function? callBack}) {
  Get.bottomSheet(
    Column(
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: crossAxisAlignment,
      children: [child],
    ),
    isScrollControlled: true,
    persistent: false,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.vertical(top: Radius.circular(radius)),
    ),
  ).then((value) {
    if (callBack != null) {
      callBack(value);
    }
  });
}
